@rem INIT AUTOCONF_ROOT

@if  defined AUTOCONF_ROOT goto :AUTOCONF_ROOT_SKIP
    @pushd %~dp0
    @SET AUTOCONF_ROOT=%CD%
    @popd
:AUTOCONF_ROOT_SKIP

@rem AUTO BUILDWND.BAT

@if not defined PROJECT_ROOT @(
	@call buildwnd.bat init
)

@if not defined PROJECT_ROOT @(
	@echo PROJECT_ROOT not defined
	@goto :EOF
)

@rem MAKE ALL
@if not {%1}=={} goto :LB_LOOP
    @if defined PROJECT_MAKE_ALL @(
	   @call %0 %PROJECT_MAKE_ALL%
	)
@goto :EOF


@rem MAKE other rule

:LB_LOOP
    @if {%1}=={} goto :EOF
	@SET MAKE_EXEC_FLAG=
    @call make_%1.bat
	@if not defined MAKE_EXEC_FLAG @(
       echo make rule[%1] not define
    )
	@SET MAKE_EXEC_FLAG=
    @shift
@goto :LB_LOOP